package com.hoshiicloud.stock.feign;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.goods.dto.sku.SkuDTO;
import com.hoshiicloud.goods.param.VendorGoodsSkuQueryParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * @program: hoshiicloud
 * @description: 商品服务
 * @author: Mr.wu
 * @create: 2019-07-17 09:28
 **/
@FeignClient(name = "hoshiicloud-goods")
public interface GoodsService {
    @GetMapping("/goods/base-sku/getByIds")
    Response getBaseSkuByIds(List<Long> ids);

    @GetMapping("/goods/ext-sku/getByIds")
    Response getExtSkuByIds(List<Long> ids);

    @PostMapping("/goods/sku-info/getSkuStockByIds")
    Response<Map<Long, SkuDTO>> getSkuStockByIds(List<Long> ids);

    @PostMapping("")
    Response getVendorGoodsSkuPage(VendorGoodsSkuQueryParam param);
}
